<?php

namespace app\common\model;

use think\Model;

class MgrChatModel extends Model
{
    public function user()
    {
        return $this->hasOne(UserModel::class, 'id', 'user_id')->field("id, nick_name,avatar");
    }
}